{% extends 'myadmin/base/content_base.html' %}
{% load static %}



{% block title %}
  测试删除
{% endblock %}

{% block content_header %}
  测试删除
{% endblock %}

{% block header_option_desc %}
  测试删除
{% endblock %}


{% block content %}
  <div class="row">
    <div class="col-md-12 col-xs-12 col-sm-12">
      <div class="box box-primary">
        <div class="box-header">
            <div style="margin-bottom: 10px">
                <form class="form-inline user-query">
{#                    <div class="form-group">#}
{#                        <label for="">用户名</label>#}
{#                        <input type="text" class="form-control" name="username" value="{{ username }}">#}
{#                    </div>#}

                    <div class="form-group">
                        <label for="">请选择要添加的课程</label>
                        <select name="category" id="" class="form-control">
                            <option value="">所有</option>
                            {% for obj in categorylist %}

{#                                <option {% if groups__id == group.id %}selected{% endif %}#}
                                <option selected
                                        value="{{ obj.id }}">{{ obj.name }}</option>

                            {% endfor %}
                        </select>
                    </div>
{#                    <div class="form-group">#}
{#                        <label for="">是否员工</label>#}
{#                        <select name="is_staff" id="" class="form-control">#}
{#                            <option value="">所有</option>#}
{##}
{#                            <option {% if is_staff is True %}selected{% endif %} value="1">是</option>#}
{#                            <option {% if is_staff is False %}selected{% endif %} value="0">否</option>#}
{#                        </select>#}
{#                    </div>#}
{#                    <div class="form-group">#}
{#                        <label for="">是否管理员</label>#}
{#                        <select name="is_superuser" id="" class="form-control">#}
{#                            <option value="">所有</option>#}
{#                            <option {% if is_superuser is True %}selected{% endif %} value="1">是</option>#}
{#                            <option {% if is_superuser is False %}selected{% endif %} value="0">否</option>#}
{#                        </select>#}
{#                    </div>#}
                    <button type="button" class="btn btn-info query">添加</button>
                <p id="yuritian" data-name='{{ id }}' data-url="/myadmin/coursebag/{{ id }}/" style="">{{ id }}</p>
{#                    <button type="button" class="btn btn-default reset">重置</button>#}
                </form>
            </div>
{#          <button class="btn btn-primary pull-right" id="btn-add-tag">添加课程</button>#}
        </div>
        <div class="box-body">
          <table class="table table-bordered table-hover">
            <thead>
            <tr>
                <th>#</th>
{#              <th>ppt片段名</th>#}
{#              <th>课件名</th>#}
              <th>课程类别</th>
{#              <th>课件研发</th>#}
{#              <th>上传时间</th>#}
{#              <th>操作</th>#}
{#              <th>简介</th>#}
{#              <th>大纲</th>#}
{#              <th>时长</th>#}
{#              <th>封面</th>#}
{#              <th>逻辑删除</th>#}
{#              <th>审核不通过</th>#}
{#                <th>操作(不能操作已删除对象)</th>#}
{#              <th>审核</th>#}
{#            </tr>#}
            </thead>
            <tbody id="tbody">
            {% for obj in coursebag %}
{#                <td style="width: 40px" data-url="{% url 'myadmin:course_update'  %}"><a href="#">{{ forloop.counter }}</a></td>#}
                <td style="width: 40px" data-url=""><a href="#">{{ forloop.counter }}</a></td>

                  <td>{{ obj }}</td>

              </tr>
            {% endfor %}


            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
      <div class="modal modal-danger fade" id="modal-delete">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">警告</h4>
                </div>
                <div class="modal-body">
                    <p>One fine body&hellip;</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-outline pull-left" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-outline delete-confirm">删除</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>

{% endblock %}

{% block script %}
    <script src="{% static 'js/myadmin/coursebag/coursebag_detail.js' %}"></script>
{% endblock %}